loans-api
Create Loan Simulation
Environment | Method | URL |
---|---|---|
Mock | POST | https://eu1.anypoint.mulesoft.com/mocking/api/v1/sources/exchange/assets/b83f053f-2270-498d-88d6-a7fa1a88abcb/loans-exp-api/1.0.46/m/loans/loan-simulation |
Dev | POST | NA |
Stage | POST | https://maictrlstg01.nbirq.com/loans-api/v1/loans/loan-simulation |
Prod | POST | NA |
Description: This endpoint is used to create loan simulation based on the below json request.
Mulesoft Request:
Headers:
Mandatory Headers: x-channel-id,x-correlation-id, x-bank-id,client_id, Authorization
Optional Headers: x-sub-channel-id,x-user-id, client_secret,x-debug-flag,x-debug-flag, x-customer-id
Paramaters:
URI Params: Na
Query Params: NA
Content-type: application/json
Mulesoft Request
To use the service to create loan simulation, the value in the arrangement field should be "NEW"
{
"arrangement": "NEW",
"activity": "LENDING-NEW-ARRANGEMENT",
"customer": "1000145124",
"product": "NBI.PERSONAL.QUICK",
"currency": "IQD",
"amount": "10000",
"term": "",
"maturityDate": "20240904",
"payinAccount": "2100000267",
"payoutAccount": "2100000267",
"fixedRate": "5",
"primaryOfficer": "2800",
"commissionRate": "",
"pentlyMarginRate": "",
"penaltyMarginOper": "",
"marginRate": "",
"marginOper": "",
"purposeFacility": ""
}
Mulesoft Response In Case Of Create:
Success Response: (200)
{
"status": {
"success": "true",
"code": "200",
"arabicMessage": "تمت العملية بنجاØ",
"englishMessage": "The Operation has been Successfully Completed"
},
"response": {
"arrangement": "1000145124",
"activity": "LENDING-NEW-ARRANGEMENT",
"tradeDate": "20230227",
"product": "NBI.PERSONAL.QUICK",
"currency": "IQD",
"amount": "10000.000",
"term": "555D",
"maturityDate": "20240904",
"rateTierType": "SINGLE",
"fixedAmount": "20.000"
}
}